package com.mathassistant.client.event.topic;

import com.google.gwt.event.shared.GwtEvent;

public class TopicAddEvent extends GwtEvent<TopicAddEventHandler> {

	public static Type<TopicAddEventHandler> TYPE = new Type<TopicAddEventHandler>();
	private String area;
	private String contentType;
	
	public TopicAddEvent(){
		
	}
	
	public TopicAddEvent(String area, String contentType){
		this.setArea(area);
		this.setContentType(contentType);
	}
	
	@Override
	public Type<TopicAddEventHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	@Override
	protected void dispatch(TopicAddEventHandler handler) {
		// TODO Auto-generated method stub
		handler.onTopicAddDSEvent(this);
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getContentType() {
		return contentType;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getArea() {
		return area;
	}

}
